import java.util.Scanner;

public class Ex2_25{
  public static void main(String[] args) {
    long totalMilliseconds = System.currentTimeMillis();
    long totalSeconds = totalMilliseconds / 1000;
    long currentSecond = (int)(totalSeconds % 60);
    long totalMinutes = totalSeconds / 60;
    long currentMinute = (int)(totalMinutes % 60);
    long totalHours = totalMinutes / 60;
    long currentHour = (int)(totalHours % 24);
	
	Scanner input = new Scanner(System.in);
	System.out.print("Enter the time zone offset to GMT: ");
	long offset = input.nextLong();
	currentHour += offset;

    // Display results
    System.out.println("Current time is " + currentHour + ":"
      + currentMinute + ":" + currentSecond + " GMT");
  }
}
